From f616b65cb0a1b8434b7f8cfbe681018dd6359849 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 5 May 2005 16:37:31 +0000 Subject: [PATCH] Free placer when waypt is freed. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1154 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/waypt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsbabel/waypt.c b/gpsbabel/waypt.c index f45633a65..14bbad644 100644 --- a/gpsbabel/waypt.c +++ b/gpsbabel/waypt.c @@ -274,6 +274,9 @@ waypt_free( waypoint *wpt ) if (wpt->gc_data.desc_long.utfstring) { xfree(wpt->gc_data.desc_long.utfstring); } + if (wpt->gc_data.placer) { + xfree(wpt->gc_data.placer); + } if ( wpt->an1_extras ) { (*(wpt->an1_extras->destroy))((void *)wpt->an1_extras ); xfree( wpt->an1_extras ); -- 2.30.2